<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Section
 *
 * @author maurizio
 */
class Section {
    private $id;
    private $name;
    private $long_name;

    public function __construct() {
        $this->id=0;
        $this->name="Not found";
        $this->long_name="Not found";
    }

      public function getId() {
        return $this->id;
    }

    public function getName(){
        return $this->name;
    }

    public function getLongName(){
        return $this->long_name;
    }

    public function setId($id){
        $this->id=$id;
    }

    public function setName($name){
        $this->name=$name;
    }

    public function setLongName($long_name){
        $this->long_name=$long_name;
    }

    public function computePageId(){
        $reqTmp=new Request(0);
        $reqTmp->setSectionId($this->getId());
        return $reqTmp->getPageId();
    }
}
?>
